<?php

include_once($cfgPaths['lib'].'cms/type/cmsEditType.o.inc.php');

class cmsEditFrameType extends cmsEditType {

 function registerFields () {
   $map[] = $this->name.'name';
   $map[] = $this->name.'src';
   $this->map = &$map;
 }

 function render_html () {
  $html  = "<!-- Datum -->\n";
  $html .= '<table border="0" cellspacing="0" cellpadding="0" width="100%">'."\n";
  $html .= '  <tr>'."\n";
  $html .= '    <td bgcolor="#000000">'."\n";
  $html .= '      <table border="0" cellspacing="1" cellpadding="3" width="100%">'."\n";
  $html .= '        <tr>'."\n";
  $html .= '          <td width="100" rowspan="2" bgcolor="#E0F6FD" valign="top">'."\n";
  $html .= '              <b>'.$this->descr.':</b>'.$this->showFields().'</td>'."\n";
  $html .= '          <td bgcolor="#E0F6FD" align="left">'."\n";
  $html .= '  <table border="0">'."\n";
  $html .= '     <tr>'."\n";
  $html .= '      <td>Dokument:</td>'."\n";
  $html .= '      <td>'."\n";
//  $html .= '        <input tabindex="'.$this->sender->getNextTabindex($this->name.'src').'" name="'.$this->name.'src" value="'.htmlspecialchars($this->getValue($this->name.'src')).'" size="50" maxlength="255"> <a href="javascript:void(0);" onClick="fenster=window.open(\'cmsEditlink/OpenDialogFrame.php?caller='.$this->name.'src&mode=href\',\'LinkOpenDialog\',\'menubar=no,status=no,width=300,height=300\');"><img src="open_but.gif" border="0" align="bottom"></a><td>'."\n";
  $html .= '        <input tabindex="'.$this->sender->getNextTabindex($this->name.'src').'" name="'.$this->name.'src" value="'.htmlspecialchars($this->getValue($this->name.'src')).'" size="50" maxlength="255"> <a href="javascript:void(0);" onClick="top.showModal(\'Dokument ausw&auml;hlen\', \'cms/cmsEditlink/OpenDialogFrame.php?caller='.$this->name.'src&mode=href\', window, 400, 400, true);"><img src="open_but.gif" border="0" align="top"></a><td>'."\n";
  $html .= '     </tr>'."\n";
  $html .= '     <tr>'."\n";
  $html .= '      <td>Framename:</td>'."\n";
  $html .= '      <td>'."\n";
  $html .= '        <input tabindex="'.$this->sender->getNextTabindex($this->name.'name').'" name="'.$this->name.'name" value="'.htmlspecialchars($this->getValue($this->name.'name')).'" size="50" maxlength="255"></td>'."\n";
  $html .= '     </tr>'."\n";
  $html .= '  </table>'."\n";
  $html .= '             </td>'."\n";
  $html .= '        </tr>'."\n";
  $html .= '      </table></td>'."\n";
  $html .= '  </tr>'."\n";
  $html .= '</table><br>'."\n";
  return $html;
 }

 function render_javascript () {
 }

}


?>